{% extends "_layouts/default.html" %}
{% block content %}
<div class="tabs_title clearfix">
  <h3>管理员管理</h3>

<ul>
<li class="current"><a href="/admin/admin"><span>管理员列表</span></a></li>
<li><a href="/admin/admin/edit"><span>添加</span></a></li>
</ul>

</div>

<div class="block tips">
    <h3>管理员列表</h3>
    <form method="post" action="" class="adminform" name="deleteform">
        <table  border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="3%"><input type="checkbox" class="checkbox" onclick="$('input[name=\'admin_id[]\']').attr('checked', this.checked);" title="全选/取消全选" /></td>
                <td width="7%">序号</td>
                <td width="15%">名称</td>

                <td width="17%">添加时间</td>
     
                <td width="15%">操作</td>
            </tr>{% for admin in adminlist  %}
            <tr>
                <td><input type="checkbox" name="adminid[]" value="{{admin.admin_id}}" class="checkbox" /></td>
                <td>{{ admin.admin_id}}</td>
                 <td>{{ admin.username }}</td>
                <td>{{ admin.ctime }}</td>
                <td><a href="admin/edit?admin_id={{admin.admin_id}}" target="_self" >修改</a> </td>
            </tr>
            {% endfor %}
            <tr class="nobg">
                <td>
                    <input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="$('input[name=\'admin_id[]\']').attr('checked', this.checked);" />

                </td>
                <td >
                    <input type="submit" class="btn" name="btnsubmit" onclick="return confirm('确定要删除吗？')" value="删除"  />

                </td>
                <td><a href="admin/edit">添加管理员</a></td>
                <td colspan="5"><div class="cuspages right"><?php $this->_control('pagination', 'pagination', array('pagination' => $pagination, 'show_count' => true)); ?></div></td>
            </tr>
        </table>
    </form>
</div>
{% endblock %}